package com.share.device.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充电宝柜机表
 * </p>
 *
 * @author pww
 * @since 2025-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cabinet")
@Schema(description = "充电宝柜机表")
public class Cabinet implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "机柜编号")
    private String cabinetNo;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "类别id")
    private Long cabinetTypeId;

    @Schema(description = "总插槽数量")
    private Integer totalSlots;

    @Schema(description = "空闲插槽数量")
    private Integer freeSlots;

    @Schema(description = "已使用插槽数量")
    private Integer usedSlots;

    @Schema(description = "可用充电宝数量")
    private Integer availableNum;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "当前位置id")
    private Long locationId;

    @Schema(description = "设备id")
    private String clientId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "状态（0：未投入 1：使用中 -1：故障）")
    private String status;

    @Schema(description = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者")
    private String updateBy;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "备注")
    private String remark;

}
